package cn.wen.yinxiu.system.service;

import cn.wen.yinxiu.common.to.system.NoticeTO;
import cn.wen.yinxiu.system.vo.NoticeVO;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.wen.yinxiu.common.toolkit.PageUtils;
import cn.wen.yinxiu.system.entity.NoticesEntity;

import java.util.List;
import java.util.Map;

/**
 *
 * @ClassName: NoticesService
 * @Author 小飞
 * @Email coderwen22@163.com
 * @Date 2023-05-22 09:46:50
 * @Description: 的Service类
 */
public interface NoticesService extends IService<NoticesEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 远程服务调用添加通知
     *
     * @param notice
     * @return
     */
    NoticeTO saveNoticeByTo(NoticeTO notice);

    /**
     * 查询用户通知列表
     *
     * @param userId
     * @param page
     * @return
     */
    List<NoticeVO> selectNoticeList(Long userId, Integer page);

    /**
     * 通过通知ID删除通知信息
     *
     * @param noticeId
     * @return
     */
    boolean deleteNoticeById(Long noticeId);
}

